package com.itheima.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.dto.DishDto;
import com.itheima.pojo.Dish;


public interface DishService extends IService<Dish> {
    //分页查询
    public Page<DishDto> findPage(Integer page,Integer pageSize,String name);

    //新增菜品，同时插入菜品对应的口味数据，需要操作两张表：dish、dish_flavor
    public void  sveawith(DishDto dishDto);

    //根据id查询菜品信息和对应的口味信息,
    public DishDto findWithById(Long id);

    //更新菜品信息，同时更新对应的口味信息
    public void updateWithFlavor(DishDto dishDto);

    public void statusByIds(Integer status,Long[] ids);



}
